package com.ls.pattern.state.v2.model;


import com.ls.pattern.state.v2.OrderStateEnum;
import com.ls.pattern.state.v2.OrderStateMachine;

public class ReceivedState implements OrderState {

    @Override
    public OrderStateEnum orderStateType() {
        return OrderStateEnum.RECEIVED;
    }

    @Override
    public void refund(OrderStateMachine stateMachine) {
        stateMachine.setCurrentState(new RefundingState());
    }

}
